package com.wavehi.job;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Description 任务类
 * @Author WaveHi
 * @Date 26/12/2021 下午 4:05
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 */
@Component
public class MyElasticJob implements SimpleJob {
    public void execute(ShardingContext shardingContext) {
        System.out.println("定时任务开始====>"+new Date());
    }
}
